package com.suse.service.vod.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Slf4j
@Configuration
public class VodConfig implements InitializingBean {

    public static String REGION;

    public static String ACCESS_KEY_ID;

    public static String ACCESS_KEY_SECRET;

    @Value("${vod.region:}")
    private String region;

    @Value("${vod.access-key.id:}")
    private String accessKeyId;

    @Value("${vod.access-key.secret:}")
    private String accessKeySecret;

    @Override
    public void afterPropertiesSet(){
        REGION = this.region;
        ACCESS_KEY_ID = this.accessKeyId;
        ACCESS_KEY_SECRET = this.accessKeySecret;
    }

}

